
/*
class WashWater{
    //属性
    public String brand;//品牌名
    public String type;//型号
    public double weight;//重量
    public double length;// 长
    public double width;// 宽
    public double height;// 高
    public String color;// 颜色
    //方法
    public void washClothes(){   // 洗衣服
        System.out.println("洗衣功能");
    }

    public void dryClothes(){    // 脱水
        System.out.println("脱水功能");
    }

    public void setTime(){       // 定时
        System.out.println("定时功能");
    }
}
//定义一个狗类
class PetDog{
    public String name;
    public String color;
    public int age;
    public String gender;

    public void barks(){
        System.out.println(name+"汪汪");
    }
    public  void  wag(){
        System.out.println(name + "摇尾巴");
    }
}
//定义一个学生类
class Student{
    public String name;
    public String gnder;
    public int age;
    public double score;

    public void Doclass(){
        System.out.println(name + "在上课");
    }
    public void Dohomework(){
        System.out.println(name + "在写作业");
    }
    public void Exam(){
        System.out.println(name + "在考试");
    }
}*/
